package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 工作台持久层
 * @author admin
 * @date 2024/10/8
 */
@Mapper
public interface WorkspaceMapper {
    /**
     * 统计套餐总览
     * @param status
     * @return
     */
    @Select("select count(id) from setmeal where status=#{status}")
    Integer getOverviewSetmeals(Integer status);

    /**
     * 统计菜品总览
     * @param status
     * @return
     */
    @Select("select count(id) from dish where status=#{status}")
    Integer getOverviewDishes(Integer status);
}
